package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.PhysicalCardBalanceDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardBalanceListDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardSecretKeyDto;
import com.shensi.api.admin.domian.station.dto.WxMessageTemplateForm;
import com.shensi.api.admin.domian.station.dto.WxMessageTemplateQueryForm;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface WxMessageTemplateClient {

    @PostMapping("/wxMessageTemplate")
    public AjaxResult add(@RequestBody WxMessageTemplateForm wxMessageTemplateForm);

    @PutMapping("/wxMessageTemplate")
    public AjaxResult update(@RequestBody WxMessageTemplateForm wxMessageTemplateForm);

    @GetMapping(value = "/wxMessageTemplate/{enterpriseId}")
    public AjaxResult get(@PathVariable("enterpriseId") Long enterpriseId);

    @DeleteMapping("/wxMessageTemplate/{enterpriseIds}")
    public AjaxResult delete(@PathVariable("enterpriseIds") String enterpriseIds);

    @GetMapping("/wxMessageTemplate/page")
    public TableDataInfo page(@SpringQueryMap WxMessageTemplateQueryForm queryForm);

}
